<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pe="http://primefaces.org/ui/extensions">

<f:view contentType="text/html" locale="#{linkMB.locale}">
	<h:head>
		<title>#{i18n.systemName}</title>
		<h:outputStylesheet library="css" name="#{linkMB.cssFileName}" />
		<link rel="shortcut icon" href="resources/images/favicon.ico" />
		<link rel="icon" type="image/gif"
			href="resources/images/animated_favicon1.gif" />
	</h:head>
	<h:body>
		<h:form id="header" prependId="false">
			<p:growl life="5000" />
			<p:toolbar>

				<p:toolbarGroup align="left">
					<p:commandLink action="#{linkMB.toHome}">
						<p:graphicImage url="#{resource['images:logo_b4l.png']}"
							height="55" styleClass="noImgBorder" />
					</p:commandLink>
				</p:toolbarGroup>

				<p:toolbarGroup align="right">
					<div
						style="width: 600px; height: 18px; position: absolute; right: 0; top: 2px;">
						<span style="position: absolute; right: 50px;"> <p:commandLink
								value="#{linkMB.loggedUser.name}" /> <p:separator /> <p:commandLink
								value="#{i18n.logout}" action="#{linkMB.logout}" /> <p:separator />

							<h:outputText value="#{linkMB.dateToday}" />

						</span>
					</div>
					<div
						style="width: 600px; height: 37px; position: absolute; right: 0; top: 22px;">
						<span
							style="position: absolute; bottom: 0; right: 50px; font-size: 20px;">
							<ui:insert name="actualHeaderText">
							#{i18n.indexPage}
						</ui:insert>
						</span> <span
							style="position: absolute; bottom: 5px; right: 10px; width: 25px; height: 25px;">
							<p:ajaxStatus style="width:25px;height:25px;">
								<f:facet name="start">
									<h:graphicImage library="images" name="ajaxloading.gif" />
								</f:facet>

								<f:facet name="complete">
									<h:outputText value="" />
								</f:facet>
							</p:ajaxStatus>
						</span>
					</div>
				</p:toolbarGroup>
			</p:toolbar>

			<p:menubar autoDisplay="false">
				<p:submenu label="#{i18n.moduleCore}" icon="icoGlobeCore">
					<p:submenu label="#{i18n.documents}" icon="icoDocuments">
						<p:menuitem value="#{i18n.managementDocuments}"
							icon="iconDocumentMagement" action="#{linkMB.toDocument}"
							title="#{i18n.managementDocuments}" />
					</p:submenu>

					<p:submenu label="#{i18n.workflow}" icon="icoWorkflow">
						<p:menuitem value="#{i18n.statusRegistration}" icon="icoMomento"
							action="#{linkMB.toWorkflowStatus}"
							title="#{i18n.statusRegistration}" />
						<p:menuitem value="#{i18n.workflowDefinition}" icon="icoPlanoWF"
							action="#{linkMB.toWorkflowPlan}"
							title="#{i18n.workflowDefinition}" />
						<p:menuitem value="#{i18n.pending}" icon="icoTask"
							action="#{linkMB.toWorkflowPending}" title="#{i18n.pending}" />
					</p:submenu>
					<p:submenu label="#{i18n.layout_Product}" icon="icoProduct">
						<p:menuitem value="#{i18n.category_Category}" icon="icoCategory"
							action="#{linkMB.toCategory}" />
						<p:menuitem value="#{i18n.clothing_Item}" icon="icoItem"
							action="#{linkMB.toItens}" />
					</p:submenu>

					<p:separator />
					<p:submenu label="#{i18n.administration}" icon="icoAdmin">
						<p:menuitem value="#{i18n.company}" title="#{i18n.company}"
							icon="icoEmpresa" action="#{linkMB.toCompany}" />
						<p:separator />
						<p:menuitem value="#{i18n.layout_Users}" icon="icoUsuario"
							action="#{linkMB.toUser}" />
						<p:menuitem value="#{i18n.layout_Roles}" icon="icoRole"
							action="#{linkMB.toRoles}" title="#{i18n.layout_Roles}" />
						<p:submenu label="#{i18n.customer}" icon="iconCustomer">
							<p:menuitem value="#{i18n.individual}" icon="iconIndividual"
								action="#{linkMB.toIndividual}" />
							<p:menuitem value="#{i18n.legalEntity}" icon="iconLegalEntity"
								action="#{linkMB.toLegalEntity}" />
						</p:submenu>
						<p:separator />

						<p:menuitem value="#{i18n.layout_FileServer}" icon="icofs"
							action="#{linkMB.toFileServer}" />
						<p:menuitem value="#{i18n.layout_License}" icon="icoKey"
							action="#{linkMB.toLicense}" />

						<p:submenu label="#{i18n.layout_Preference}" icon="icoPrefs">
							<p:menuitem value="#{i18n.layout_SystemMail}" icon="icoMail"
								action="#{linkMB.toSystemMail}" />
							<p:menuitem value="#{i18n.layout_SystemThema}"
								icon="iconPreferencesTheme" action="#{linkMB.toSystemThema}" />
							<p:menuitem value="#{i18n.layout_SystemLanguage}"
								icon="iconPreferencesLanguage"
								action="#{linkMB.toSystemLanguage}" />
							<p:menuitem value="#{i18n.layout_SystemPreferenceLinks}"
								icon="iconIndexLink" action="#{linkMB.toSystemIndexLink}" />
						</p:submenu>
					</p:submenu>
				</p:submenu>
			</p:menubar>
		</h:form>

		<ui:insert name="corpo" />

		<h:form id="footer" prependId="false">
			<p:toolbar>
				<p:toolbarGroup styleClass="footerToolbar">
					<div class="footerToolbarDiv">
						<h:outputLabel value="#{i18n.allRightsReserved}" />
						<a href="#{i18n.systemName}" class="linkEmpresa"><h:outputText
								value="#{i18n.companyNameSystem}" /></a>(2.0.0)
					</div>
				</p:toolbarGroup>
			</p:toolbar>
		</h:form>
	</h:body>
</f:view>
</html>